package controller

import (
	"time"

	"gitee.com/yyzh999/message/internal/message/repository"
	"github.com/gin-gonic/gin"
)

func AddNewNotificationMsg(c *gin.Context) {
	msg := repository.NotificationMessage{
		MsgId: int64(123),
		MsgContent: repository.MsgContent{
			Text: "xxxxxxxxxxxxxxxxxxxxx",
			Img:  "http://www.baidu.com",
		},
		MsgType:      1,
		IsDelete:     0,
		CreateTime:   time.Now().UnixMilli(),
		UpdateTime:   time.Now().UnixMilli(),
		CreateUserId: time.Now().Unix(),
		UpdateUserId: time.Now().Unix(),
	}

	repository.InsertNotificationMessage(msg)
}

func MsgList(c *gin.Context) {

}
